import requests from '../utlis/requests'
//注册
export const regUser = ({ username, password, repassword }) =>
  requests.post('/api/reg', { username, password, repassword })

//登录
export const loginUser = ({ username, password }) =>
  requests.post('/api/login', { username, password })

//获取数据
export const getUserInfo = () => requests.get('/my/userinfo')
